jQuery(function($) {

	var header = $("#header");
	var shadow = header.find(".shadow");
	
	/* Header and shadow fade in on downscroll */
	
	$(window).scroll(function(){
		
		var st = $(this).scrollTop();
		
		if (st < 300) {
			
			//var color = (st * 0.01);
			
			//if (color <= 0.2) { color = 0.2; }
			
			//header.css({backgroundColor : "rgba(37,37,37," + color + ")"});
			//header.css({opacity: (st * 0.01) });
			shadow.css({opacity: (st * 0.01) });
		} else {
			//header.css({opacity: 1 });
			//header.css({backgroundColor : "#252525"});
			shadow.css({opacity: 1 });
		}
	});
});

